package com.singzi.javaSenior.threads.threadPool.executor.example1;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        Server server = new Server();
        for (int i = 0; i < 100; i++) {
            Task task = new Task("task" + i);
            Thread.sleep(10);
            server.submitTask(task);
        }
        server.endServer();
    }
}
